package com.example.qxfw.common.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.example.qxfw.common.entity.DisasterType;
import org.apache.ibatis.annotations.Mapper;

/************************************
*
* @author : HuangDeYin Jolly
* @since : JDK 11
* @Date : 2023/7/7  星期五   16:42
* @description : 此类用来
***************************************/
@Mapper
public interface DisasterTypeMapperXml extends BaseMapper<DisasterType> {
    /**
     * delete by primary key
     * @param disastertypeid primaryKey
     * @return deleteCount
     */
    int deleteByPrimaryKey(String disastertypeid);

    /**
     * insert record to table
     * @param record the record
     * @return insert count
     */
    int insert(DisasterType record);

    /**
     * insert record to table selective
     * @param record the record
     * @return insert count
     */
    int insertSelective(DisasterType record);

    /**
     * select by primary key
     * @param disastertypeid primary key
     * @return object by primary key
     */
    DisasterType selectByPrimaryKey(String disastertypeid);

    /**
     * update record selective
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKeySelective(DisasterType record);

    /**
     * update record
     * @param record the updated record
     * @return update count
     */
    int updateByPrimaryKey(DisasterType record);
}